AcquirePart
TheAcquirePart
method returns a reference to the part whose data is stored in the specified storage unit.
ODPart AcquirePart (in ODStorageUnitID id);
id
- The ID of the target part.
- return value
- A reference to the specified part object.
DISCUSSION
You call this method to re-create a part object from its stored data.This method increments the reference count of the returned part. When you have finished using that part, you should call its
Release
method.EXCEPTIONS
kODErrIllegalNullIDInput
- The
id
parameter is null.SEE ALSO
TheODStorageUnitID
type (page 903).
TheODDraft::CreatePart
method (page 169).
TheODPart
class (page 459).
"The InitPartFromStorage Method" on page 295 in OpenDoc Programmer's Guide.
"Adding an Embedded Part" on page 305 in OpenDoc Programmer's Guide.
"Embedding a Single Part" on page 347 in OpenDoc Programmer's Guide.
Table 11-1 on page 466 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help